package site.weiyikai.eventdriven.config;


import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Import;
import site.weiyikai.eventdriven.core.AsynchronousDelivery;
import site.weiyikai.eventdriven.properties.AsyEventDrivenProperties;


/**
 * 描述：异步事件驱动模型配置类
 *
 * @author 程序员小魏
 * 创建时间: 2023/11/12
 */
@Import({EventServiceConfig.class,SubscriberConfig.class})
@EnableConfigurationProperties(AsyEventDrivenProperties.class)
public class AsyEventDrivenConfig {


    /**
     * 事件交付器
     * @return
     */
    @Bean
    public AsynchronousDelivery asynchronousDelivery(){
        return new AsynchronousDelivery();
    }
}
